<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="${package}.repository.${name?cap_first}Repository">
    <select id="list" resultType="HashMap">
        SELECT * from ${table};
    </select>

    <select id="list_count" resultType="Integer">
        SELECT count(id) from ${table};
    </select>

    <update id="update">
        update ${table} set /*** todo ***/
    </update>

    <delete id="delete">
        delete from ${table} where id in <#noparse>(${ids})</#noparse>;
    </delete>

    <select id="get" resultType="HashMap">
        select * from ${table} where id =<#noparse> #{id}</#noparse>;
    </select>

    <insert id="add">
        insert  into ${table}( /*** todo ***/) values( /*** todo ***/);
    </insert>

</mapper>